#import "UnwindPulseCell.h"


@implementation UnwindPulseCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setApprehension:(UnwindPulseModel *)apprehension {
	_apprehension = apprehension;

	//: 配置cell的UI

	[self.artistryImageView sd_setImageWithURL:[NSURL URLWithString:apprehension.hoverZeal] placeholderImage:nil];

}
- (UIView *)lullabyWhimsyGraspView {
	if (!_lullabyWhimsyGraspView) {
	
        _lullabyWhimsyGraspView = [[UIView alloc] initWithFrame:CGRectZero];
	}
	return _lullabyWhimsyGraspView;
}

//: 设置self.artistryImageView的圆角
- (void)xylophoneZipper:(UIImageView *)tranquilThistle fusion:(CGFloat)whisperMergeCourageous {
	tranquilThistle.layer.cornerRadius = whisperMergeCourageous;
	tranquilThistle.layer.masksToBounds = YES;
}

//: _jeopardyBtn 的点击事件
- (void)action_6 {}

- (UIButton *)jeopardyBtn {
	if (!_jeopardyBtn) {
	
        _jeopardyBtn = [[UIButton alloc] init];
        _jeopardyBtn.size = CGSizeMake(62, 126);
        _jeopardyBtn.left = 24;
        _jeopardyBtn.top = 41;
        UIImage *whimsyOasis = [UIImage imageNamed:@"images/icon_6.png"];
        if (whimsyOasis) {
	        [_jeopardyBtn setImage:whimsyOasis forState:UIControlStateNormal];
        }
        [_jeopardyBtn setTitle:@"button_6" forState:UIControlStateNormal];
        [_jeopardyBtn setTitle:@"button_selected_6" forState:UIControlStateSelected];
        [_jeopardyBtn setTitleColor:[UIColor colorWithRed:38/255.0 green:203/255.0 blue:91/255.0 alpha:0.9] forState:UIControlStateNormal];
        [_jeopardyBtn setTitleColor:[UIColor colorWithRed:211/255.0 green:88/255.0 blue:66/255.0 alpha:0.6] forState:UIControlStateSelected];
        [_jeopardyBtn addTarget:self action:@selector(action_6) forControlEvents:UIControlEventTouchUpInside];
	}
	return _jeopardyBtn;
}

- (void)circulateLeapInitUIKitView {

    //: 描述_0
    self.leapXenonTextField = [[UITextField alloc] init];
    [self.contentView addSubview:self.leapXenonTextField];
	[self.leapXenonTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(52);
		make.height.mas_equalTo(156);
		make.bottom.equalTo(@(18));
	}];


    //: 描述_1
    UILabel *soarLullabyGlisten = [[UILabel alloc] init];
    soarLullabyGlisten.text = @"label_1";
    soarLullabyGlisten.font = [UIFont systemFontOfSize:16 weight:UIFontWeightRegular];
    soarLullabyGlisten.textColor = [UIColor colorWithRed:5/255.0 green:178/255.0 blue:164/255.0 alpha:0.6];
    soarLullabyGlisten.textAlignment = NSTextAlignmentRight;
    soarLullabyGlisten.numberOfLines = 3;
    self.cableWhistleHummingbirdLabel = soarLullabyGlisten;
    [self.contentView addSubview:soarLullabyGlisten];
	[self.cableWhistleHummingbirdLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(172);
		make.height.mas_equalTo(180);
		make.top.equalTo(@(20));
	}];


    //: 描述_2
    self.cactusTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    self.cactusTextView.frame = CGRectMake(29, 12, 52, 183);
    [self.contentView addSubview:self.cactusTextView];

	//: 描述_3
	[self.contentView addSubview:self.lullabyWhimsyGraspView];
	[self.lullabyWhimsyGraspView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(63);
		make.height.mas_equalTo(187);
		make.bottom.equalTo(@(27));
	}];


    //: 描述_4
    self.artistryImageView = [UIImageView new];
    self.artistryImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.artistryImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self xylophoneZipper:self.artistryImageView fusion:11];
    UIImage *unfoldThistleYonder = [UIImage imageNamed:@"images/image_4.png"];
    if (unfoldThistleYonder) {
	    self.artistryImageView.image = unfoldThistleYonder;
    }
    [self.contentView addSubview:self.artistryImageView];
	[self.artistryImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(74);
		make.height.mas_equalTo(136);
		make.top.equalTo(@(19));
		make.bottom.equalTo(@(24));
	}];


    //: 描述_5
    self.illuminateTranquilApexView = [[UIView alloc] init];
    [self.contentView addSubview:self.illuminateTranquilApexView];
	[self.illuminateTranquilApexView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(105);
		make.height.mas_equalTo(133);
	}];

	//: 描述_6
	[self.contentView addSubview:self.jeopardyBtn];
}


@end